package config

import (
	"golang.org/x/oauth2"
)

var GiteeOauthEndpoint = oauth2.Endpoint{
	AuthURL:  "https://gitee.com/oauth/authorize",
	TokenURL: "https://gitee.com/oauth/token",
}

// https://gitee.com/api/v5/oauth_doc#/
var GiteeConf = &oauth2.Config{
	ClientID:     "8990ca6b3fdadb6463fbf9ec80f6302e782d60d66e6552eb7a99824c3d0e76f3",
	ClientSecret: "a33ea17a5529a7f57854d6ee56d36bc7bf1c0c6180a542ee2d11d10584c9d1db",
	RedirectURL:  "http://blog.poolworker.icu:9876/",
	Scopes:       []string{"user_info"},
	Endpoint:     GiteeOauthEndpoint,
}

var GiteeScope = []string{
	"user_info", "projects", "pull_requests", "issues", "notes", "keys", "hook", "groups", "gists", "enterprises",
}
